<?php if (!defined('THINK_PATH')) exit(); /*a:8:{s:79:"/home/wwwroot/www.lxlhome.com/public/../application/index/view/search/list.html";i:1557035201;s:64:"/home/wwwroot/www.lxlhome.com/application/index/view/layout.html";i:1557840856;s:68:"/home/wwwroot/www.lxlhome.com/application/index/view/common/nav.html";i:1556709540;s:74:"/home/wwwroot/www.lxlhome.com/application/index/view/common/right_nav.html";i:1556684194;s:69:"/home/wwwroot/www.lxlhome.com/application/index/view/common/page.html";i:1557035386;s:71:"/home/wwwroot/www.lxlhome.com/application/index/view/common/search.html";i:1556690140;s:71:"/home/wwwroot/www.lxlhome.com/application/index/view/common/footer.html";i:1557072396;s:72:"/home/wwwroot/www.lxlhome.com/application/index/view/common/message.html";i:1556950967;}*/ ?>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width,user-scalable=no,initial-scale=1.0,maximum-scale=1.0,minimum-scale=1.0">
    <title><?php echo $web_setting['web_name']; ?></title>
    <meta name="description" content="<?php echo $seo_setting['description']; ?>"/>
    <meta name="keywords" content="<?php echo $seo_setting['keywords']; ?>"/>
    <link rel="stylesheet" href="/static/common/lib/layui/css/layui.css">
    <link rel="stylesheet" href="/static/index/css/index.css">
</head>
<body>
<!-- 侧边内容 -->
<div class="sidebar-content">
    <div class="layui-card">
        <div class="layui-card-header">
            <?php if(empty($web_setting['web_logo']) || (($web_setting['web_logo'] instanceof \think\Collection || $web_setting['web_logo'] instanceof \think\Paginator ) && $web_setting['web_logo']->isEmpty())): ?>
            <img src="/static/index/img/100.jpg" alt="<?php echo $web_setting['web_name']; ?>"><br/>
            <?php else: ?>
            <img src="<?php echo $web_setting['web_logo']; ?>" alt="<?php echo $web_setting['web_name']; ?>"><br/>
            <?php endif; ?>
            <span><?php echo $web_setting['web_name']; ?></span>
        </div>
        <div class="layui-card-body">
            <ul>
                <li class="txt">
                    <span><?php echo $article_count; ?></span><br/>
                    <span>文章</span>
                </li>
                <li class="item">
                    <span><?php echo $works_count; ?></span><br/>
                    <span>项目</span>
                </li>
                <li class="visitors">
                    <span id="hits" >
                        <script type="text/javascript" src="//quote.51.la/q?id=20024633&mb=5"></script>
                    </span><br/>
                    <span><?php echo \think\Lang::get('hit_num'); ?></span>
                </li>
            </ul>
        </div>
    </div>
    <ul class="layui-nav">
    <!--侧边导航: -->
    <?php if(is_array($column) || $column instanceof \think\Collection || $column instanceof \think\Paginator): $i = 0; $__LIST__ = $column;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$item): $mod = ($i % 2 );++$i;if($item['name_en'] == strtoupper(\think\Request::instance()->controller())): ?>
    <li data-pjax class="layui-nav-item layui-this">
        <a href="/<?php echo strtolower($item['name_en']); ?>.html"><?php echo $item['name']; ?><br/><?php echo $item['name_en']; ?></a>
    </li>
    <?php else: ?>
    <li data-pjax class="layui-nav-item">
        <a href="/<?php echo strtolower($item['name_en']); ?>.html"><?php echo $item['name']; ?><br/><?php echo $item['name_en']; ?></a>
    </li>
    <?php endif; endforeach; endif; else: echo "" ;endif; ?>
</ul>
</div>

<!-- 右侧内容区域 -->

<!-- 主要内容 -->
    <!-- 右侧内容区域 -->
<div class="article-right-content">
    <h3>推荐文章</h3>
    <ul>
        <?php 
        $colorArr = ['red','green','orange','cyan','blue','black','gray'];
         if(is_array($keywords) || $keywords instanceof \think\Collection || $keywords instanceof \think\Paginator): $i = 0; $__LIST__ = $keywords;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$item): $mod = ($i % 2 );++$i;?>
            <li>
                <a href="/search/search_name/<?php echo $item; ?>.html"><button class="layui-btn layui-bg-<?php echo $colorArr[rand(0, 6)]; ?>"><?php echo $item; ?></button></a>
            </li>
        <?php endforeach; endif; else: echo "" ;endif; ?>
    </ul>
</div>

  <!-- 主要内容 -->
  <div class="main article">
      <!--<div class="layui-tab layui-tab-brief" lay-filter="subtab">-->
          <!--<ul id="tabBox" class="layui-tab-title"></ul>-->
          <!--<div class="layui-tab-content"></div>-->
      <!--</div>-->
      <?php if(is_array($data['data']) || $data['data'] instanceof \think\Collection || $data['data'] instanceof \think\Paginator): $i = 0; $__LIST__ = $data['data'];if( count($__LIST__)==0 ) : echo "$empty" ;else: foreach($__LIST__ as $key=>$item): $mod = ($i % 2 );++$i;?>
      <div class="item">
          <?php if(empty($item['pic']) || (($item['pic'] instanceof \think\Collection || $item['pic'] instanceof \think\Paginator ) && $item['pic']->isEmpty())): ?>
          <!--<img width="240" height="170" src="/static/index/img/default.jpg" alt="暂时没有缩略图">-->
          <?php else: ?>
          <img width="240" height="170" src="<?php echo $item['pic']; ?>" alt="<?php echo $item['title']; ?>">
          <?php endif; ?>
          <div class="item-content" style="height: 170px;" >
              <h3><?php echo $item['title']; ?></h3>
              <?php $_result=explode(',',$item['keywords']);if(is_array($_result) || $_result instanceof \think\Collection || $_result instanceof \think\Paginator): $i = 0; $__LIST__ = $_result;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$v): $mod = ($i % 2 );++$i;?>
              <a target="_self" target="_self" href="/search/search_name/<?php echo $v; ?>.html"><span class="Subtitle"><?php echo $v; ?></span></a>
              <?php endforeach; endif; else: echo "" ;endif; ?>
              <br/>

              <p><?php echo $item['digest']; ?></p>
              <a target="_self" href="/article/read/<?php echo $item['id']; ?>.html" target="_blank" title="<?php echo $item['title']; ?>" >
                  <button class="layui-btn">阅读全文</button>
              </a>
          </div>
          <div class="date-box">
              <div class="date">
                  <h4><?php echo date("d",$item['create_time']); ?></h4>
                  <span><?php echo date("Y/m",$item['create_time']); ?></span>
              </div>
          </div>
      </div>
      <?php endforeach; endif; else: echo "$empty" ;endif; ?>

      <!--分页-->
      <?php 
      $pageMethod = '/search';
       ?>
      <script>
    //数据总数
    var pageTotal = <?php echo isset($data['total'])?$data['total']:5; ?>;
    //当前分布
    var current_page = <?php echo isset($data['current_page'])?$data['current_page']:1; ?>;
    //每页显示多少条
    var limit = <?php echo isset($data['limit'])?$data['limit']:1; ?>;
    //分页连接
    var pageUrl = "<?php echo isset($pageMethod)?$pageMethod:'/message'; ?>";
    //搜索关键词
    var search_name = "<?php echo \think\Request::instance()->param('search_name'); ?>";

</script>
<div id="page"></div>
  </div>



<!-- 搜索框 -->
<div class="seach">
    <form class="layui-form seach-box" method="get" action="/search.html">
        <div class="layui-form-item">
            <div class="layui-input-block">
                <button class="layui-btn"><i class="layui-icon layui-icon-search"></i></button>
                <input type="text" value="<?php echo (\think\Request::instance()->param('search_name')) ? \think\Request::instance()->param('search_name') : ''; ?>" name="search_name" lay-verify="required" placeholder="搜索相关" required autocomplete="off" class="layui-input">
            </div>
        </div>
    </form>
</div>


<script src="/static/common/jq/jquery.min.js"></script>
<script src="/static/common/lib/layui/layui.js"></script>
<script src="/static/common/lib/pjax/jquery.pjax.min.js"></script>
<!--[if lt IE 9]>
<script src="/static/common/lib/ie/html5.min.js"></script>
<script src="/static/common/lib/ie/respond.min.js"></script>
<![endif]-->
<div style="text-align: center;" >
    <?php echo $web_setting['statistics']; ?>
</div>

<script>
    layui.config({
        base: '/static/index/js/'
    }).use('layBlog');
</script>
<script>
    layui.use('code', function(){
        layui.code({
            elem: 'pre',
            about: false
        });
    });
</script>
<script>
    layui.use('util', function(){
        var util = layui.util;
        //执行
        util.fixbar({
            top: true
        });
    });
</script>
<script id="LAY-msg-tpl" type="text/html">
    <li>
        <img src="{{ d.avatar }}" alt="">
        <div class="list-txt">
            <p class="max-title">
                <span class="name">{{ d.name }}</span>
                <span class="time">{{ d.time }}</span>
            </p>
            <p class="list-content">{{ d.content }}</p>
        </div>
    </li>
</script>

<script>
    $('#hits').text($('#hits').text().trim().replace(/[^0-9]/ig,""));
</script>
</body>
</html>